package com.zrrd.learn.chapter08面向对象.综合类设计题;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 借阅记录类
 *
 * 借阅记录类（BorrowRecord）：每条借阅记录包括借阅的图书、借阅人、借阅日期和归还日期等属性。
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/9 8:59
 */

@NoArgsConstructor
@Data

public class BorrowRecord {

    private Book LendBook;
    private User Borrowers;
    private String LendDate;
    private String ReturnDate;

    public BorrowRecord(Book LendBook,User Borrowers,String LendDate,String ReturnDate){
        this.LendBook=LendBook;
        this.Borrowers=Borrowers;
        this.LendDate= LendDate;
        this.ReturnDate=ReturnDate;
        System.out.println("借书名为："+LendBook+"\n借书人"+Borrowers+"\n借书时间"+LendDate+"\n还书时间"+ReturnDate);

    }





}
